<?php
class Error_Codes {

	public $ErrorCode = array();

	function __construct() {
        $this->ErrorCode["ModulList"][1] = "Error beim Aktivieren vom Modul";
        $this->ErrorCode["ModulList"][3] = "SetSetting from Modul to user_Explorer Error";
        $this->ErrorCode["UserPageExplorer"][2] = "Seite nicht gefunden";
        $this->ErrorCode["UserPageExplorer"][3] = "Modul nicht Aktiviert";
	}
     public function code($controllerName,$key) {
     	$controllerName = trim($controllerName);
     	
     	if(isset($this->ErrorCode[$controllerName][$key]))
     	{
     		return $this->ErrorCode[$controllerName][$key];
     	}
     	else
     	{ 
     		return false;
     	}
    }
}
?>